package com.flower.enjoyment.flower.mapper;

import com.flower.enjoyment.flower.entity.SysBanner;
import com.flower.enjoyment.flower.entityDo.SysBannerDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysBannerMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysBanner record);

    int insertSelective(SysBanner record);

    SysBanner selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysBanner record);

    int updateByPrimaryKey(SysBanner record);

    /**
     * 首页获取banner列表
     * @return
     */
    List<SysBannerDo> getBannerList(@Param("bannerType") int bannerType);

    /**
     * 获取分享人赠送金额信息
     * @return
     */
    SysBannerDo getShareInfo();
}